/*
*  Copyright 2019-2020 Zheng Jie
*
*  Licensed under the Apache License, Version 2.0 (the "License");
*  you may not use this file except in compliance with the License.
*  You may obtain a copy of the License at
*
*  http://www.apache.org/licenses/LICENSE-2.0
*
*  Unless required by applicable law or agreed to in writing, software
*  distributed under the License is distributed on an "AS IS" BASIS,
*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*  See the License for the specific language governing permissions and
*  limitations under the License.
*/
package me.zhengjie.business.domain;

import lombok.Data;
import cn.hutool.core.bean.BeanUtil;
import io.swagger.annotations.ApiModelProperty;
import cn.hutool.core.bean.copier.CopyOptions;
import me.zhengjie.base.BaseBusiness;
import org.hibernate.annotations.GenericGenerator;
import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
* @website https://el-admin.vip
* @description /
* @author xiahongbo
* @date 2025-01-06
**/
@Entity
@Data
@Table(name="PRIC_BED")
public class PricBed extends BaseBusiness implements Serializable {

    @Id
    @GenericGenerator(name = "hibernate-uuid", strategy = "uuid")
    @GeneratedValue(generator = "hibernate-uuid")
    @Column(name = "PRIC_BED_ID")
    @ApiModelProperty(value = "主键ID")
    private String pricBedId;

    @Column(name = "NURSCARE_ORG_NO")
    @ApiModelProperty(value = "护理机构编号")
    private String nurscareOrgNo;

    @Column(name = "NURSCARE_ORG_ID")
    @ApiModelProperty(value = "护理机构ID")
    private String nurscareOrgId;

    @Column(name = "ROOM_NO")
    @ApiModelProperty(value = "房间号")
    private String roomNo;

    @Column(name = "ROOM_NAME")
    @ApiModelProperty(value = "房间名称")
    private String roomName;

    @Column(name = "BED_NO")
    @ApiModelProperty(value = "床位号")
    private String bedNo;

    @Column(name = "BED_NAME")
    @ApiModelProperty(value = "床位名称")
    private String bedName;

    @Column(name = "NURSCARE_REGN_NAME")
    @ApiModelProperty(value = "照护区名称")
    private String nurscareRegnName;

    @Column(name = "NURSCARE_REGN_NO")
    @ApiModelProperty(value = "照护区号")
    private String nurscareRegnNo;

    @Column(name = "NURSCARE_REGN_TYPE")
    @ApiModelProperty(value = "护理区类型")
    private String nurscareRegnType;

    @Column(name = "LONGTERM_ORG_NURSCARE_REGN_ID")
    @ApiModelProperty(value = "照护区Id")
    private String longtermOrgNurscareRegnId;

    @Column(name = "LONGTERM_ORG_BED_ID")
    @ApiModelProperty(value = "长期护理机构床位ID")
    private String longtermOrgBedId;

    @Column(name = "LONGTERM_ORG_ROOM_ID")
    @ApiModelProperty(value = "长期护理机构房间ID")
    private String longtermOrgRoomId;

    @Column(name = "RID")
    @ApiModelProperty(value = "数据唯一记录号")
    private String rid;

    @Column(name = "CRTE_TIME")
    @ApiModelProperty(value = "数据创建时间")
    private Date crteTime;

    @Column(name = "UPDT_TIME")
    @ApiModelProperty(value = "数据更新时间")
    private Date updtTime;

    @Column(name = "CRTER_ID")
    @ApiModelProperty(value = "创建人ID")
    private String crterId;

    @Column(name = "CRTER_NAME")
    @ApiModelProperty(value = "创建人姓名")
    private String crterName;

    @Column(name = "CRTE_OPTINS_NO")
    @ApiModelProperty(value = "创建机构编号")
    private String crteOptinsNo;

    @Column(name = "OPTER_ID")
    @ApiModelProperty(value = "经办人ID")
    private String opterId;

    @Column(name = "OPTER_NAME")
    @ApiModelProperty(value = "经办人姓名")
    private String opterName;

    @Column(name = "OPT_TIME")
    @ApiModelProperty(value = "经办时间")
    private Date optTime;

    @Column(name = "OPTINS_NO")
    @ApiModelProperty(value = "经办机构编号")
    private String optinsNo;

    @Column(name = "ADMDVS")
    @ApiModelProperty(value = "医保区划")
    private String admdvs;

    @Column(name = "VALI_FLAG")
    @ApiModelProperty(value = "有效标志")
    private String valiFlag;

    @Column(name = "DATA_VER")
    @ApiModelProperty(value = "数据版本号")
    private Long dataVer;



    public void copy(PricBed source){
        BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
    }
}